package java_test;

public class SumTime {
	public static void main(String[] args) {
		long beginTime = System.currentTimeMillis();
		long sum = 0;
		for(int i=0;i<1000000000;i++){
			sum = sum + i;
		}
		long endTime = System.currentTimeMillis();
		long time = endTime- beginTime;
		System.out.println("最终所花时间："+time + "毫秒");
	}
}
